﻿@using BrnMall.Web.StoreAdmin.Models
@model BrnMall.Web.StoreAdmin.Models.DisGradeListModel

@section header{
    <title>分销等级设置</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
}
@section body{
    <h1 class="rightH1 nav-fx">
        小程序分销 &gt; 代理管理 &gt; <span class="rightH1-cur">代理商等级</span>
        <div class="right">
            <a href="@Url.Action("AddOrEditAgentGrade")" class="menuBT"><img src="/admin_store/images/add.jpg"/>添加等级</a>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
    <div class="table_top">
    </div>
    <div class="dataList">
        <table width="100%">
            <thead>
            <tr>
                <th width="20">ID</th>
                <th align="left" >等级名称</th>
                <th align="left">销售额满足点</th>
                <th align="left">成交店铺佣金奖励</th>
               
                <th width="90" align="left">管理操作</th>
            </tr>
            </thead>
            <tbody>
            @foreach (DisGradeModel info in Model.DisGradeList)
            {
                <tr>
                    <td>@info.Id</td>
                    <td>@info.Name @if (info.IsDefault)
                                   {
                                       @:<span style="color: #e17a00">(默认)</span>
                                   }</td>
                    <td>￥@info.BrokerageLimit </td>
                    <td>@info.FirstBrokerageRise %</td>
                    <td>
                        
                        @Html.ActionLink("编辑", "AddOrEditAgentGrade", new {id = info.Id}, new {@class = "editOperate"})
                        <span class="btn-line">|</span>
                        @Html.ActionLink("删除", "DeleteGrade", new {id = info.Id}, new {@class = "deleteOperate"})
                        
                    </td>
                </tr>
            }
            </tbody>
        </table>
    </div>
    <div class="table_bottom"></div>
}